package com.lcl.jarvis.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.Size;

/**
 * <p>
 *
 * </p>
 *
 * @author licl
 * @since 2024-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("medical_info")
@ApiModel(value="MedicalInfo", description="")
public class MedicalInfoDO extends Model<MedicalInfoDO> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医疗机构ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "筛查单位编码")
    private String code;

    @ApiModelProperty(value = "筛查单位名称")
    private String name;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "电话")
    private String phone;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
